cmake_minimum_required(VERSION 3.16)
project(template)

set(CMAKE_CXX_STANDARD 14)

# 设置安装目录
set(CMAKE_INSTALL_PREFIX ${PROJECT_SOURCE_DIR}/dist)

# 设置库输出目录
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)

# 设置可执行文件输出目录
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

# 添加子目录
add_subdirectory(add)
add_subdirectory(sub)
add_subdirectory(example)